<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        table{
            border-collapse: collapse;
        }
    </style>
</head>
<body>
<!--<table border="1px" cellspacing="0px" cellpadding="5px">
        <tr>
        </>tr>
</table>-->
</body>
<script>
    document.write("<table border='1px' cellspacing='0px' cellpadding='5px'>")
    for (let i = 1; i <= 9; i++) {
        document.write("<tr>")
        for (let j = 1; j <=i; j++) {
            document.write("<td>")
            let  str = j + "x" + i + "=" +(i*j);
            document.write(str)
            document.write("</td>")
        }
        document.write("</tr>")
    }
    document.write("</table>")
</script>
</html>